package com.sulent.frame.support.utils;

/**
 * @ClassName FileNameUtils
 * @Description: TODO
 * @Author Submerge.
 * @Since 2024/1/29 9:39
 * @Version 1.0
 */
public class FileNameUtils {


    public static String getSuffixByName(String fileName) {
        return fileName.substring(fileName.lastIndexOf(".")+1);

    }

    public static void main(String[] args) {
        String suffixByName = getSuffixByName("1231564564654fasdlfjsa.pdf");
        System.out.println(suffixByName);
    }
}
